<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>


<script type="text/javascript">
function chk_idfind(form){
	name = form.mb_name.value;
	email = form.mb_email.value;
	if(form.mb_name.value == ""){
		alert("이름을 입력하세요.");a
		form.mb_name.focus();
		return;
	}else if(form.mb_email.value == ""){
		alert("이메일을 입력하세요.");
		form.mb_email.focus();
		return;
	}
	w = window.open("idFind.jsp?name="+name+"&email="+email,"","width=250,height=150");
}
function chk_pwfind(form){
	id = form.mb_id.value;
	que = form.mb_pw_que.value;
	ans = form.mb_pw_ans.value;
	if(form.mb_id.value == ""){
		alert("아이디를 입력하세요.");
		form.mb_id.focus();
		return;
	}else if(form.mb_pw_ans.value == ""){
		alert("질문의 답변을 입력하세요.");
		form.mb_pw_ans.focus();
		return;
	}
	w = window.open("pwFind.jsp?id="+id+"&que="+que+"&ans="+ans,"","width=250,height=150");
}
</script>


<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>ID/PW 찾기</title>
<jsp:include page="/Dmyna/style.css" />
</head>
<body>

<c:set var="WEB_ROOT" value="/Dmyna" />

<!-- 상단제목 -->
<p>
<table width="350" align=center cellpadding=0 cellspacing=0>
	<tr>
		<td>
			<div
				style="border:1px solid #ddd; height:34px; background:url(${WEB_ROOT }/img/bbs/title_bg.gif) repeat-x;">
				<div style="font-weight: bold; font-size: 14px; margin: 7px 0 0 10px;" align="center">
					::&nbsp;&nbsp;아이디/패스워드 찾기&nbsp;&nbsp;::</div>
			</div>
		</td>
	</tr>
</table>
<p>

<form action="idFind.jsp" method="post" onSubmit="return validate(this)">
<table width="350" border="1" align="center" bordercolor="#f0f0f0">
<col width="115" />
<col />
<tr>
	<td colspan="2" align="center">아이디 찾기</td>
</tr>
<tr>
	<td align="center">이름</td>
	<td><input class="ed" maxlength="20" style="width:95%" name="mb_name" itemname="이름" required /></td>
</tr>
<tr>
	<td align="center">이메일</td>
	<td><input class="ed" maxlength="20" style="width:95%" name="mb_email" itemname="이메일" required /></td>
</tr>
<tr>
	<td colspan="2"><input type="button" value="아이디 찾기" style="width:100%" onClick="chk_idfind(this.form)"/></td>
</tr>
</table>
</form>


<div style="height:12px; line-height:1px; font-size:1px;">&nbsp;</div>



<form action="pwFind.jsp" method="post" onSubmit="return validate(this)">
<table width="350" border="1" align="center" bordercolor="#f0f0f0">
<col width="115" />
<col />
<tr>
	<td colspan="2" align="center">패스워드 찾기</td>
</tr>
<tr>
	<td align="center">아 이 디</td>
	<td><input type="text" name="mb_id" ></td>
</tr>
<tr>
	<td align="center">질문</td>
	<td>
	<select style="width:95%" name="mb_pw_que" >
		<option value="자신의 인생 좌우명은?">자신의 인생 좌우명은?</option>
		<option value="자신의 보물 제1호는?">자신의 보물 제1호는?</option>
		<option value="기억에 남는 추억의 장소는?">기억에 남는 추억의 장소는?</option>
		<option value="가장 기억에 남는 선생님 성함은?">가장 기억에 남는 선생님 성함은?</option>
		<option value="추억하고 싶은 날짜가 있다면?">추억하고 싶은 날짜가 있다면?</option>
	</select>
	</td>
</tr>
<tr>
	<td align="center">답</td>
	<td><input type="text" name="mb_pw_ans" ></td>
</tr>
<tr>
	<td colspan="2"><input type="button" value="패스워드 찾기"  style="width:100%" onClick="chk_pwfind(this.form)" /></td>
</tr>
</table>
</form>

</body>
</html>
